import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}


// 登出
export function logout(token) {
  return request({
    url: '/admin/logout',
    method: 'post',
    params: { token }
  })
}
